Optimal. Leaf size=119 \[ -\frac{2 d \sqrt{d+e x} \left (a+b \log \left (c x^n\right )\right )}{e^2}+\frac{2 (d+e x)^{3/2} \left (a+b \log \left (c x^n\right )\right )}{3 e^2}-\frac{8 b d^{3/2} n \tanh ^{-1}\left (\frac{\sqrt{d+e x}}{\sqrt{d}}\right )}{3 e^2}+\frac{8 b d n \sqrt{d+e x}}{3 e^2}-\frac{4 b n (d+e x)^{3/2}}{9 e^2} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0912596, antiderivative size = 119, normalized size of antiderivative = 1., number of steps used = 6, number of rules used = 7, integrand size = 21, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.333, Rules used = {43, 2350, 12, 80, 50, 63, 208} \[ -\frac{2 d \sqrt{d+e x} \left (a+b \log \left (c x^n\right )\right )}{e^2}+\frac{2 (d+e x)^{3/2} \left (a+b \log \left (c x^n\right )\right )}{3 e^2}-\frac{8 b d^{3/2} n \tanh ^{-1}\left (\frac{\sqrt{d+e x}}{\sqrt{d}}\right )}{3 e^2}+\frac{8 b d n \sqrt{d+e x}}{3 e^2}-\frac{4 b n (d+e x)^{3/2}}{9 e^2} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 43
Rule 2350
Rule 12
Rule 80
Rule 50
Rule 63
Rule 208
Rubi steps
\begin{align*} \int \frac{x \left (a+b \log \left (c x^n\right )\right )}{\sqrt{d+e x}} \, dx &=-\frac{2 d \sqrt{d+e x} \left (a+b \log \left (c x^n\right )\right )}{e^2}+\frac{2 (d+e x)^{3/2} \left (a+b \log \left (c x^n\right )\right )}{3 e^2}-(b n) \int \frac{2 (-2 d+e x) \sqrt{d+e x}}{3 e^2 x} \, dx\\ &=-\frac{2 d \sqrt{d+e x} \left (a+b \log \left (c x^n\right )\right )}{e^2}+\frac{2 (d+e x)^{3/2} \left (a+b \log \left (c x^n\right )\right )}{3 e^2}-\frac{(2 b n) \int \frac{(-2 d+e x) \sqrt{d+e x}}{x} \, dx}{3 e^2}\\ &=-\frac{4 b n (d+e x)^{3/2}}{9 e^2}-\frac{2 d \sqrt{d+e x} \left (a+b \log \left (c x^n\right )\right )}{e^2}+\frac{2 (d+e x)^{3/2} \left (a+b \log \left (c x^n\right )\right )}{3 e^2}+\frac{(4 b d n) \int \frac{\sqrt{d+e x}}{x} \, dx}{3 e^2}\\ &=\frac{8 b d n \sqrt{d+e x}}{3 e^2}-\frac{4 b n (d+e x)^{3/2}}{9 e^2}-\frac{2 d \sqrt{d+e x} \left (a+b \log \left (c x^n\right )\right )}{e^2}+\frac{2 (d+e x)^{3/2} \left (a+b \log \left (c x^n\right )\right )}{3 e^2}+\frac{\left (4 b d^2 n\right ) \int \frac{1}{x \sqrt{d+e x}} \, dx}{3 e^2}\\ &=\frac{8 b d n \sqrt{d+e x}}{3 e^2}-\frac{4 b n (d+e x)^{3/2}}{9 e^2}-\frac{2 d \sqrt{d+e x} \left (a+b \log \left (c x^n\right )\right )}{e^2}+\frac{2 (d+e x)^{3/2} \left (a+b \log \left (c x^n\right )\right )}{3 e^2}+\frac{\left (8 b d^2 n\right ) \operatorname{Subst}\left (\int \frac{1}{-\frac{d}{e}+\frac{x^2}{e}} \, dx,x,\sqrt{d+e x}\right )}{3 e^3}\\ &=\frac{8 b d n \sqrt{d+e x}}{3 e^2}-\frac{4 b n (d+e x)^{3/2}}{9 e^2}-\frac{8 b d^{3/2} n \tanh ^{-1}\left (\frac{\sqrt{d+e x}}{\sqrt{d}}\right )}{3 e^2}-\frac{2 d \sqrt{d+e x} \left (a+b \log \left (c x^n\right )\right )}{e^2}+\frac{2 (d+e x)^{3/2} \left (a+b \log \left (c x^n\right )\right )}{3 e^2}\\ \end{align*}
Mathematica [A] time = 0.0996774, size = 80, normalized size = 0.67 \[ -\frac{2 \left (\sqrt{d+e x} \left (6 a d-3 a e x+b (6 d-3 e x) \log \left (c x^n\right )-10 b d n+2 b e n x\right )+12 b d^{3/2} n \tanh ^{-1}\left (\frac{\sqrt{d+e x}}{\sqrt{d}}\right )\right )}{9 e^2} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F] time = 0.551, size = 0, normalized size = 0. \begin{align*} \int{x \left ( a+b\ln \left ( c{x}^{n} \right ) \right ){\frac{1}{\sqrt{ex+d}}}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: ValueError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.34229, size = 494, normalized size = 4.15 \begin{align*} \left [\frac{2 \,{\left (6 \, b d^{\frac{3}{2}} n \log \left (\frac{e x - 2 \, \sqrt{e x + d} \sqrt{d} + 2 \, d}{x}\right ) +{\left (10 \, b d n - 6 \, a d -{\left (2 \, b e n - 3 \, a e\right )} x + 3 \,{\left (b e x - 2 \, b d\right )} \log \left (c\right ) + 3 \,{\left (b e n x - 2 \, b d n\right )} \log \left (x\right )\right )} \sqrt{e x + d}\right )}}{9 \, e^{2}}, \frac{2 \,{\left (12 \, b \sqrt{-d} d n \arctan \left (\frac{\sqrt{e x + d} \sqrt{-d}}{d}\right ) +{\left (10 \, b d n - 6 \, a d -{\left (2 \, b e n - 3 \, a e\right )} x + 3 \,{\left (b e x - 2 \, b d\right )} \log \left (c\right ) + 3 \,{\left (b e n x - 2 \, b d n\right )} \log \left (x\right )\right )} \sqrt{e x + d}\right )}}{9 \, e^{2}}\right ] \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 123.661, size = 473, normalized size = 3.97 \begin{align*} \begin{cases} - \frac{\frac{2 a d \left (- \frac{d}{\sqrt{d + e x}} - \sqrt{d + e x}\right )}{e} + \frac{2 a \left (\frac{d^{2}}{\sqrt{d + e x}} + 2 d \sqrt{d + e x} - \frac{\left (d + e x\right )^{\frac{3}{2}}}{3}\right )}{e} + \frac{2 b d \left (- d \left (\frac{\log{\left (c \left (- \frac{d}{e} + \frac{d + e x}{e}\right )^{n} \right )}}{\sqrt{d + e x}} - \frac{2 n \operatorname{atan}{\left (\frac{1}{\sqrt{- \frac{1}{d}} \sqrt{d + e x}} \right )}}{d \sqrt{- \frac{1}{d}}}\right ) - \sqrt{d + e x} \log{\left (c \left (- \frac{d}{e} + \frac{d + e x}{e}\right )^{n} \right )} - \frac{2 n \left (- e \sqrt{d + e x} - \frac{e \operatorname{atan}{\left (\frac{1}{\sqrt{- \frac{1}{d}} \sqrt{d + e x}} \right )}}{\sqrt{- \frac{1}{d}}}\right )}{e}\right )}{e} + \frac{2 b \left (d^{2} \left (\frac{\log{\left (c \left (- \frac{d}{e} + \frac{d + e x}{e}\right )^{n} \right )}}{\sqrt{d + e x}} - \frac{2 n \operatorname{atan}{\left (\frac{1}{\sqrt{- \frac{1}{d}} \sqrt{d + e x}} \right )}}{d \sqrt{- \frac{1}{d}}}\right ) - 2 d \left (- \sqrt{d + e x} \log{\left (c \left (- \frac{d}{e} + \frac{d + e x}{e}\right )^{n} \right )} - \frac{2 n \left (- e \sqrt{d + e x} - \frac{e \operatorname{atan}{\left (\frac{1}{\sqrt{- \frac{1}{d}} \sqrt{d + e x}} \right )}}{\sqrt{- \frac{1}{d}}}\right )}{e}\right ) - \frac{\left (d + e x\right )^{\frac{3}{2}} \log{\left (c \left (- \frac{d}{e} + \frac{d + e x}{e}\right )^{n} \right )}}{3} - \frac{2 n \left (- d e \sqrt{d + e x} - \frac{d e \operatorname{atan}{\left (\frac{1}{\sqrt{- \frac{1}{d}} \sqrt{d + e x}} \right )}}{\sqrt{- \frac{1}{d}}} - \frac{e \left (d + e x\right )^{\frac{3}{2}}}{3}\right )}{3 e}\right )}{e}}{e} & \text{for}\: e \neq 0 \\\frac{\frac{a x^{2}}{2} + b \left (- \frac{n x^{2}}{4} + \frac{x^{2} \log{\left (c x^{n} \right )}}{2}\right )}{\sqrt{d}} & \text{otherwise} \end{cases} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{{\left (b \log \left (c x^{n}\right ) + a\right )} x}{\sqrt{e x + d}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]